package com.example.alibabanacosdiscoveryserver.service;

import org.springframework.ai.chat.model.ToolContext;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.stereotype.Service;

/**
 * @author:guoq
 * @date:2025/5/13
 * @descripion:
 */
@Service
public class AirQualityService {
    @Tool(description = "根据城市名称获取空气质量")
    public String getAirQuality(@ToolParam(description = "城市") String cityName,ToolContext toolContex) {
        return cityName + "空气质量很好";
    }
}
